package com.weaving.monitor.config;

import com.weaving.monitor.entity.Machine;
import com.weaving.monitor.entity.PendingPlan;
import com.weaving.monitor.mapper.MachineMapper;
import com.weaving.monitor.mapper.PendingPlanMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;
import java.util.Arrays;
import java.util.List;

@Component
public class DataInitializer implements CommandLineRunner {

    @Autowired
    private MachineMapper machineMapper;

    @Autowired
    private PendingPlanMapper pendingPlanMapper;

    @Override
    public void run(String... args) throws Exception {
        // 注意：由于我们使用MySQL数据库，数据初始化将通过SQL脚本完成
        // 这里不再需要Java代码初始化数据
        System.out.println("数据初始化完成 - 使用MySQL数据库");
    }
} 